package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}




interface  inter{
    public abstract void show();  //完整语法
    void test();                  //默认public abstract
}
//演示接口的实现
interface  inter1{
    void show();
    void test();
}
class Aoo implements inter{
    public void show(){}           //重写接口中的方法时，必须加上public
    public void test(){}
}
//演示接口的多实现
//接口
interface inter2{
    void show();
}
interface inter3{
    void test();
}
abstract class B{
    abstract void say();
}
        //继承       //多接口的实现
class C extends B implements inter2,inter3{
    public void show(){}
    public void test(){}
    void say(){}
}
interface inter4{
    void show();
}
interface inter5 extends inter4{
    void test();
}
class D implements inter5{
    public void show(){}
    public void test(){}
}